package com.hooper.dp.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2023/02/25/14:36
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessException extends RuntimeException {
    private String message;
    private String descriptions;

    public BusinessException(String message) {
        this.message = message;
    }

    public BusinessException(String message,String descriptions) {
        this.message = message;
        this.descriptions = descriptions;
    }
}
